<?php

require_once('system/core/Controller.php');

/**
 * @author Garry
 *
 *
 */
class ContentManager extends CI_Controller {
	public $display;
	//TODO - Insert your code here
	/**
	 *
	 */
	public  function __construct( $pagecontentid ) {
		parent::__construct(); 
		$this->load->helper(array('form', 'url'));
		$this->load->database();
		$this->display = new Display();
		$this->display->scripts = 'jquery.js';
		$this->display->scripts = 'jquery.lightbox_me.js';
		$this->display->scripts = 'jquery-ui.js';
		$this->display->scripts = 'uiinit.js';
		$this->display->styles = 'contentmanager';
		parent::__construct();
	    $content_id = (string)$pagecontentid;
	    $section = self::GetContentLineManager( $content_id );
	    $section->display->finalize();
	 	$out = $section->display->content;
	 	$this->display->$pagecontentid = $out;
	}
	
	/**
	 * Get a content line manager
	 */
	public static function GetContentLineManager( $id ){
		$clm = new ContentLineManager($id);
		return $clm;
	}
}


?>